package com.cloud.basic.gateway.listener;

import com.purgeteam.dynamic.config.starter.event.ActionConfigEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


/**
 * @Description: Nacos配置监听
 * @Auther: zhangxun
 * @Date: 2020/8/6 19:32
 */
@Slf4j
@Component
public class NacosListener implements ApplicationListener<ActionConfigEvent> {
    @Override
    public void onApplicationEvent(ActionConfigEvent event) {
        log.info("Nacos配置中心数据变化监听:key:{}",event.getPropertyMap().toString());
    }
}